package com.ruoyi.service.impl;

import com.ruoyi.entity.JrTemplates;
import com.ruoyi.entity.RecentLog;
import com.ruoyi.mapper.TemplatesMapper;
import com.ruoyi.service.TemplatesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TemplatesServiceImpl implements TemplatesService {
    @Autowired
    private TemplatesMapper templatesMapper;
    @Override
    public List<JrTemplates> selectTemplateList(JrTemplates templates) {
        return templatesMapper.selectTemplateList(templates);
    }

    @Override
    public List<RecentLog> selectLogRecords(Long userId, String recordsType) {
        return templatesMapper.selectLogRecords(userId,recordsType);
    }

    @Override
    public void addLogRecords(RecentLog recentLog) {
        templatesMapper.insertRecentLog(recentLog);
    }

    @Override
    public void updataLogRecords(RecentLog recentLog) {
        templatesMapper.updataLogRecords(recentLog);
    }
}
